package com.sc.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 课程表 实体类。
 *
 * @author JoeZhou
 * @since 2024-09-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sms_course", schema = "study_club")
public class Course implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 课程名称
     */
    private String name;

    /**
     * 授课教师ID
     */
    private Long teacherId;

    /**
     * 授课老师
     */
    private String teacherName;

    /**
     * 阶段ID
     */
    private Long stageId;

    /**
     * 阶段名称
     */
    private String stageName;

    /**
     * 需要上本门课的ID列表
     */
    private List<Long> mapClazzIds;

    /**
     * 需要上课的学年
     */
    private String mapGradeList;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 状态
     */
    private Integer status;
    @Column(isLogicDelete = true)
    private Integer isDelete;

    /**
     * 备注
     */
    private String info;

    /**
     * 创建时间
     */
    private LocalDateTime created;

    /**
     * 更新时间
     */
    private LocalDateTime updated;

    /**
     * 版本
     */
    @Column(version = true)
    private Integer version;

}
